package com.scu.gkvr_system_backend.controller;

import com.scu.gkvr_system_backend.service.MajorTypeService;
import com.scu.gkvr_system_backend.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @project gkvr_system_backend
 * @description 专业类型相关Controller层
 * @date 2024/5/9 15:51:56
 * @version V1.0
 */
@RestController
@RequestMapping("/majorType")
public class MajorTypeController {

    @Autowired
    private MajorTypeService majorTypeService;
    /**
     * 获取全部专业类型信息
     */
    @GetMapping("/list")
    public Result getListMajorType() {
        return Result.success(majorTypeService.list());
    }

}
